<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>CSS Theme</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="demonstration of some noty capabilities">

    <link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic&amp;subset=latin,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
    <style type="text/css">

        html {
            height: 100%;
            width: 100%;
        }

        body {
            font-family: 'PT Sans', Tahoma, Arial, serif;
            line-height: 13px
        }

    </style>

    <link rel="stylesheet" type="text/css" href="buttons.css"/>

    <style type="text/css">

        .someOtherTheme {
            overflow: hidden;
            border: 1px solid #fff;
            box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .someOtherTheme.noty_container_type_alert {
            background-color: #f5f5f5;
        }

        .someOtherTheme.noty_container_type_information {
            background-color: #bbe1e8;
        }

        .someOtherTheme.noty_container_type_error {
            background-color: #eaadad;
            color: #fff;
            font-weight: bold
        }

        .someOtherTheme.noty_container_type_warning {
            background-color: #fbb450;
            color: #fff;
        }

        .someOtherTheme.noty_container_type_success {
            background-color: #b1ce8c;
            color: #fff;
        }

        .someOtherTheme .noty_message {
            padding: 10px 20px;
        }

        .someOtherTheme .noty_close {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 10px;
            height: 10px;
            background: url("");
            visibility: hidden;
            opacity: 0.5;
            cursor: pointer;
        }

        .someOtherTheme:hover > .noty_bar > .noty_message > .noty_close {
            visibility: visible;
        }

        .noty_modal.someOtherTheme {
            position: fixed;
            width: 100%;
            height: 100%;
            background-color: #000;
            z-index: 10000;
            opacity: 0.6;
            display: none;
            border: none;
            left: 0;
            top: 0
        }

    </style>

</head>
<body>

<div class="container">

    <div id="customContainer"></div>

</div>

<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>

<script type="text/javascript">

    function generate(type, theme) {
        var n = noty({
            text        : theme + ' > ' + type,
            type        : type,
            dismissQueue: true,
            layout      : theme == 'defaultTheme' ? 'topCenter' : 'bottomCenter',
            theme       : theme,
            closeWith   : ['button', 'click'],
            maxVisible  : 20,
            modal       : true
        });
        console.log('html: ' + n.options.id);
    }

    function generateAll() {
//        generate('alert', 'defaultTheme');
//        generate('information', 'defaultTheme');
//        generate('error', 'defaultTheme');
//        generate('warning', 'defaultTheme');
//        generate('success', 'defaultTheme');

        generate('alert', 'someOtherTheme');
        generate('information', 'someOtherTheme');
        generate('error', 'someOtherTheme');
        generate('warning', 'someOtherTheme');
        generate('success', 'someOtherTheme');
    }

    $(document).ready(function () {
        generateAll();
    });

</script>
</body>
</html>
